<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div class="movie-card">
    <div class="poster">
      <!-- <img src="poster.jpg" alt="电影海报" /> -->
    </div>
    <div class="details">
      <div class="header">
        <h3 class="title">最后的生还者 第一季</h3>
        <button class="edit-button">✏️ 编辑</button>
      </div>
      <div class="rating">⭐️ 4.5/5</div>
      <div class="total-records">总观影次数: 3</div>
      <ul class="watch-records">
        <li class="record-item" data-details="日期: 2023-04-02 | 地点: 客厅 | 设备: 电视">
          第1次
        </li>
        <li class="record-item" data-details="日期: 2023-05-15 | 地点: 卧室 | 设备: 手机">
          第2次
        </li>
        <li class="record-item" data-details="日期: 2023-06-01 | 地点: 影院 | 设备: IMAX">
          第3次
        </li>
      </ul>
      <div class="actions">
        <button class="favorite-button">⭐ 收藏</button>
        <button class="watch-later-button">📅 加入待观看</button>
      </div>
    </div>
  </div>

</body>
<style>
  .movie-card {
    display: flex;
    flex-direction: row;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 400px;
    font-family: Arial, sans-serif;
  }

  .poster img {
    width: 120px;
    height: auto;
  }

  .details {
    padding: 10px;
    flex-grow: 1;
    position: relative;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
  }

  .edit-button {
    background: #007bff;
    border: none;
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
  }

  .edit-button:hover {
    background: #0056b3;
  }

  .rating {
    color: #f39c12;
    font-size: 14px;
    margin: 10px 0;
  }

  .total-records {
    font-size: 14px;
    color: #333;
    margin: 10px 0;
  }

  .watch-records {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .record-item {
    padding: 5px 10px;
    margin: 5px 0;
    background: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
  }

  .record-item:hover {
    background: #d9edf7;
  }

  .record-item:hover::after {
    content: attr(data-details);
    position: absolute;
    left: 100%;
    top: 0;
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    padding: 5px;
    white-space: nowrap;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  .actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }

  .favorite-button,
  .watch-later-button {
    background: #ffcc00;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
  }

  .watch-later-butto
</style>

</html>